import { lazy } from "react";
import { Navigate } from "react-router-dom";
const Home = lazy(() => import("../views/home"));
const List = lazy(() => import("../views/list"));
const Test = lazy(() => import("../views/test"));
const Mine = lazy(() => import("../views/mine"));
const Detail = lazy(() => import("../views/detail"));
const MainLayout = lazy(() => import("../views/mianLayout"));
const ROUTER_LIST = [
  {
    path: "/",
    element: <Navigate to="/home"></Navigate>,
  },
  {
    path: "/home",
    element: <Home></Home>,
  },
  {
    path: "/list",
    element: <List></List>,
  },
  {
    path: "/test",
    element: <Test></Test>,
  },
  {
    path: "/mine",
    element: <Mine></Mine>,
  },
  {
    path: "/detail",
    element: <Detail></Detail>,
  },
];
export default ROUTER_LIST;
